<?php

namespace App\Http\Models;

use Illuminate\Database\Eloquent\Model;

class MusicRelationModel extends Model
{
	protected $connection = 'db_main_slave';

	protected $table = 'wp_sdk_material_music_relation';

    public static function getMusicId ( $appid )
    {
        return self::where(["appid" => $appid, "status" => 1])->first();
    }
}

